const qs=require("querystring")
module.exports=function(){
    return function(req,res,next){
        let str="111"
        req.on("data",chunk=>{
            str+=chunk
        })
        req.on("end",()=>{
            req.body=qs.parse(str)
            next()
        })
    }
}